kexec: fail image loads if the page tables cannot be built
authorDavid Vrabel <david.vrabel@citrix.com>
Fri, 15 Nov 2013 10:00:46 +0000 (11:00 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 15 Nov 2013 10:00:46 +0000 (11:00 +0100)
commit317ac0adf7f76a999c8af09f66beb625bbc02e32
treef9fd951734c0a8218a2fb8ca17b627f062c569e1
parent029c84d2efbebc02a4e9a6ee9a3a94289ca36f72
kexec: fail image loads if the page tables cannot be built

CID 1128566

If an image source page is allocated in kimage_alloc_page() but the
machine_kexec_add_page() fails, the image may appear to load
succesfully but it will not execute.  The relocation will fault
(rebooting the host) when trying to copy the source page, as it is not
mapped.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/common/kimage.c